<html>
  <head>
    <script type="text/javascript" src="util.js"></script>
    <script type="text/javascript" src="type.js"></script>
    <script type="text/javascript" src="atom.js"></script>
    <script type="text/javascript" src="cons.js"></script>
    <script type="text/javascript" src="read.js"></script>
    <script type="text/javascript" src="compile.js"></script>
    <script type="text/javascript" src="env.js"></script>
    <script type="text/javascript" src="main.js"></script>
  </head>
  <body>
    
    <pre id="source">


      (def (foldr f r l)
        (if (null l)
            r
            (f (car l) (foldr f r (cdr l)))))


    </pre>

    <pre id="out">
    </pre>

    <pre id="value">
    </pre>

  </body>
  <script>
    var source = byId("source");
    var out = byId("out");

    var reader = new Reader(source.innerHTML);
    var compiler = new Compiler();

    var x = reader.read();
    out.innerHTML=compiler.compile(x);


//    main()
  </script>
</html>
